package com.yuyou.train.admin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuyou.train.admin.mapper.AuthUserRoleRelationMapper;
import com.yuyou.train.admin.service.IAuthUserRoleRelationService;
import com.yuyou.train.service.api.admin.entity.AuthUserRoleRelation;

/**
 * Created by yujin.liu on 2018/2/25.
 */
@Service
public class AuthUserRoleRelationServiceImpl implements IAuthUserRoleRelationService{

    @Autowired
    private AuthUserRoleRelationMapper authUserRoleRelationMapper;


    @Override
    public int deleteByUserId(String userId) {
        return authUserRoleRelationMapper.deleteByUserId(userId);
    }

    @Override
    public int insertAuthUserRoleRelation(AuthUserRoleRelation authUserRoleRelation) {
        return authUserRoleRelationMapper.insert(authUserRoleRelation);
    }


}
